<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOnlineMessageTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('online_message', function (Blueprint $table) {
            $table->increments('id')->comment('用户标识');
            $table->string('realname')->nullable()->comment("姓名");
            $table->string('phone')->nullable()->comment('手机');
            $table->string('company')->nullable()->comment("公司");
            $table->string('e_mail')->nullable()->comment("邮箱");
            $table->string('theme')->nullable()->comment("主题");
            $table->text('content')->nullable()->comment("留言内容");
            $table->integer('status')->default(0)->comment("状态");
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
